<template>
  <div>
    <div>
      <div class="flex">
        <div>
          <el-checkbox v-model="checkAll" label="全选" size="large" />
        </div>
        <div class="mar-l-20">
          <el-button type="text">导出</el-button>
        </div>
        <div class="mar-l-30">
          <el-button>批量重新同步</el-button>
        </div>
        <div class="mar-l-20 pad-r-21">
          <el-button>批量生成订单</el-button>
        </div>
        <div>
          <el-checkbox v-model="checkAll" label="有买家留言不生成" size="large" />
        </div>
        <div class="mar-l-24">
          <el-checkbox v-model="checkAll" label="有买家备注不生成" size="large" />
        </div>
      </div>
      <div class="list-header font-14 font-w flex mar-t-15">
        <span>基础信息</span>
        <span>订单信息</span>
        <span>收货人信息</span>
        <span>分销价</span>
        <span>待付金额</span>
        <span>时间</span>
        <span>操作</span>
      </div>
      <div v-for="(item, index) of 4" :key="index" class="mar-t-10">
        <div class="goods-info pad-t-13 pad-b-20 flex">
          <div class="v-align-c">
            <div>
              <el-checkbox label="" :indeterminate="false" />
            </div>
            <div class="flex pad-l-10">
              <img class="width-80 height-80" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic153.nipic.com%2Ffile%2F20180116%2F8737320_170317603036_2.jpg&refer=http%3A%2F%2Fpic153.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1646876869&t=735c4dec0d8b574f5a0b36b9c548c37d" alt="">
              <div class="flex-col mar-l-10">
                <span class="font-12 font-color-3 line-1 goods-title">商品标题推秋冬爆款中性宽松牛仔商品标题推秋冬爆款中性宽松牛仔...</span>
                <span class="font-12 font-color-6 mar-t-4">货号：SSSS555</span>
                <span class="font-12 font-color-6">数量: 1</span>
                <span class="font-12 font-color-6">包裹: 1</span>
              </div>
            </div>
          </div>
          <div class="flex-col font-12 font-color-6">
            <span>货品状态: 待付款</span>
            <span>订单号: 56455555121</span>
            <span>抖音订单号: 56451215412</span>
          </div>
          <div class="flex-col font-12 font-color-6">
            <span>望远镜 15060312266</span>
            <span class="flex address-info">福建省厦门市湖里区高林中路535号海西金融广场</span>
          </div>
          <div class="flex-col font-12 font-color-6">
            <span>运费: 0.00</span>
            <span>商品: 0.00</span>
            <span>合计: 0.00</span>
          </div>
          <div class="flex-col font-12 font-color-6">
            <span>运费: 0.00</span>
            <span>商品: 0.00</span>
            <span>合计: 0.00</span>
          </div>
          <div class="flex-col font-12 font-color-6">
            <span>生成: 2022-01-02 21:22:16</span>
            <span>生成: 2022-01-02 21:22:16</span>
            <span>生成: 2022-01-02 21:22:16</span>
          </div>
          <div class="flex-col font-12">
            <el-button type="primary" size="mini">立即付款</el-button>
            <router-link :to="{name: 'order-detail', params: {status: 0}}">
              <el-button type="text" size="default">订单详情</el-button>
            </router-link>
          </div>
        </div>
      </div>
    </div>
    <div class="flex flex-center mar-t-30">
      <page-number />
    </div>
  </div>
</template>

<script lang="ts">
import PageNumber from '../../../../components/PageNumber/index.vue'
import { defineComponent } from 'vue'
export default defineComponent({
  name: '',
  components: {
    PageNumber
  },
  setup() {
  }
})
</script>

<style lang="scss" scoped>
  $darkBlue: #182245;
  $fontcolor: #323233;
  $td1: 278px;
  $td2: 180px;
  $td3: 179px;
  $td4: 91px;
  $td5: 115px;
  $td6: 179px;
  .list-header {
    width: 1140px;
    height: 48px;
    background: #F9F9F9;
    border: 1px solid #F5F5F5;
    color: $fontcolor;
    &>span {
      display: flex;
      align-items: center;
    }
    &>span:nth-child(1) {
      padding-left: 50px;
      width: $td1;
    }
    &>span:nth-child(2) {
      width: $td2;
    }
    &>span:nth-child(3) {
      width: $td3;
    }
    &>span:nth-child(4) {
      width: $td4;
    }
    &>span:nth-child(5) {
      width: $td5;
    }
    &>span:nth-child(6) {
      width: $td6;
    }
  }
  .order-info {
    width: 1140px;
    height: 34px;
    background: #F5F7FB;
    .address-tag {
      background: $darkBlue;
      color: #fff;
      padding: 1px 5px;
    }
  }
  .user-info {
    color: $fontcolor;
  }
  .goods-info {
    &>div:not(:first-child) {
      margin-top: 7px;
    }
    &>div:nth-child(1) {
      width: $td1;
    }
    &>div:nth-child(2) {
      width: $td2;
    }
    &>div:nth-child(3) {
      width: $td3;
    }
    &>div:nth-child(4) {
      width: $td4;
    }
    &>div:nth-child(5) {
      width: $td5;
    }
    &>div:nth-child(6) {
      width: $td6;
    }
    .goods-title {
      width: 140px
    }
    .address-info {
      width: 156px;
    }
  }
</style>

